﻿
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="NguoiDungNhaCungCap.aspx.cs" Inherits="Indeco.G24.Website.Admin.NguoiDungNhaCungCap" Title="NguoiDungNhaCungCap List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Nguoi Dung Nha Cung Cap List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<asp:UpdatePanel ID="UpdatePanel1" runat="server">
	<ContentTemplate>
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="NguoiDungNhaCungCapDataSource"
				DataKeyNames="IDNguoiDung, IDNhaCungCap"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_NguoiDungNhaCungCap.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<data:HyperLinkField HeaderText="ID Nguoi Dung" DataNavigateUrlFormatString="NguoiDungEdit.aspx?IDNguoiDung={0}" DataNavigateUrlFields="IDNguoiDung" DataContainer="IDNguoiDungSource" DataTextField="TenSuDung" />
				<data:HyperLinkField HeaderText="ID Nha Cung Cap" DataNavigateUrlFormatString="NhaCungCapEdit.aspx?IDNhaCungCap={0}" DataNavigateUrlFields="IDNhaCungCap" DataContainer="IDNhaCungCapSource" DataTextField="NhaCungCap" />
			</Columns>
			<EmptyDataTemplate>
				<b>No NguoiDungNhaCungCap Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnNguoiDungNhaCungCap" OnClientClick="javascript:location.href='NguoiDungNhaCungCapEdit.aspx'; return false;" Text="Add New"></asp:Button>
	</ContentTemplate>
	</asp:UpdatePanel>	
		<data:NguoiDungNhaCungCapDataSource ID="NguoiDungNhaCungCapDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:NguoiDungNhaCungCapProperty Name="NhaCungCap"/> 
					<data:NguoiDungNhaCungCapProperty Name="NguoiDung"/> 
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:NguoiDungNhaCungCapDataSource>
	    		
</asp:Content>



